﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace psafth.RCTiming.Common
{
    [Serializable]
    public class MCDriver
    {
        public string Name
        {
            get;
            set;
        }

        public int? Position
        {
            get;
            set;
        }

        public bool IsFinished
        {
            get;
            set;
        }

        public double FinishTime
        {
            get;
            set;
        }

        public bool IsDisqualified
        {
            get;
            set;
        }

        public int? BoatNumber
        {
            get;
            set;
        }

        public string ClubName
        {
            get;
            set;
        }

        public int NumberOfLaps
        {
            get;
            set;
        }

        public double BestLapTime
        {
            get;
            set;
        }

        public double LastLapTime
        {
            get;
            set;
        }
    }

    [Serializable]
    public class MCHeat
    {
        public MCHeat()
        {
            Competitors = new List<MCDriver>();
        }

        public string Title
        {
            get;
            set;
        }

        public int Duration
        {
            get;
            set;
        }

        public TimeSpan TimeElapsed
        {
            get;
            set;
        }

        public List<MCDriver> Competitors
        {
            get;
            set;
        }

        public Boolean IsRunning
        {
            get;
            set;
        }
    }
}
